#conding=utf-8
import pytest
import os
@pytest.mark.parametrize("test_input,expected", [("3+5", 8), ("2+4", 6), ("6*9", 42)])
def test_01(test_input, expected):
    print("-------",test_input,expected,"-------")


@pytest.fixture(params=[1,2,3,"abc"])
def test_02(request):
    # print("--------{}---------".format(request.params))
    return request.param

def test_03(test_02):
    print("{}".format(test_02))

if __name__=="__main__":
    file_path=os.path.dirname(__file__)+"\\fixture参数传递.py"
    pytest.main(["-v",file_path])